package com.elasticcloudservice.predict;

import java.io.Serializable;

/**
 * @Author: Chy
 * @Description: 虚拟机类
 * @Date: 12:00 2018/3/10
 */
public class VirtualMachine implements Serializable{


    private static final long serialVersionUID = -7546230416487090822L;
    private int CPUs;
    private int mems;
    private String name;
    private int id;

    @Override
    public int hashCode(){
        return 1;
    }

    @Override
    public boolean equals(Object obj){
        VirtualMachine p=(VirtualMachine)obj;
        return this.getId() == p.getId();
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public int getCPUs() {
        return CPUs;
    }

    public void setCPUs(int CPUs) {
        this.CPUs = CPUs;
    }

    public int getMems() {
        return mems;
    }

    public void setMems(int mems) {
        this.mems = mems;
    }

}